package com.hspedu.seckill.model.vo;

import com.hspedu.seckill.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author: xujiabing
 * @date: 2024-10-02 20:21
 * @description 登录页面参数
 */
@Data
public class LoginVo {
    @NotBlank
    @IsMobile//自定义注解，验证是否是合法手机号
    private String mobile;

    @NotBlank
    @Length(min = 32)
    private String password;
}
